<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net/el" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="/lottery/js/validate.js"></script>
<link href="/lottery/css/common.css" type="text/css" rel="stylesheet" />
<title>奖品列表</title>
</head>

<body>
<div id="man_zone1">
	<div class="operation_tile">
		奖品列表
	</div>
	<SPAN class="button_title"">
			<c:out value="${message}"/>
	</SPAN>
	
	<display:table name="prizeList"  pagesize="10" requestURI="/lottery/admin/prize.do?action=findByAll"  sort ="external" id ="row" partialList ="true"  size ="resultSize">
		<display:column property ="prizeName"  title ="奖品名称" maxLength="20" style="white-space: nowrap;"/>
		<display:column property ="phaseName"  title ="所属活动" maxLength="20" style="white-space: nowrap;"/>
		<display:column title="奖品等级">
			<c:if test="${row.prizeLevel eq '1'}">一等奖</c:if>
			<c:if test="${row.prizeLevel eq '2'}">二等奖</c:if>
			<c:if test="${row.prizeLevel eq '3'}">三等奖</c:if>
			<c:if test="${row.prizeLevel eq '4'}">四等奖</c:if>
			<c:if test="${row.prizeLevel eq '5'}">五等奖</c:if>
		</display:column>
		<display:column title="操作" style="width:18%">
			<c:if test="${row.isActivity=='n' && row.haveQuota=='n'}">
				<a href="/lottery/admin/prize.do?action=findById&id=<c:out value="${row.prizeId}"/>">修改</a> | 
				<a href="/lottery/admin/prize.do?action=delete&id=<c:out value="${row.prizeId}"/>" onclick="return del();">删除</a>
			</c:if>
			<c:if test="${row.isActivity=='y'}">
				活动已使用
			</c:if>
			<c:if test="${row.haveQuota=='y'}">
				奖品配额已创建
			</c:if>
		</display:column>
	</display:table>
</div>
</body>
</html>

